QT       += core gui svg testlib

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
CONFIG += qt warn_on depend_includepath testcase

TARGET = FlowelementChart
TEMPLATE = lib
DEFINES += FlowelementChart_LIBRARY

INCLUDEPATH += $$PWD/src

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    src/ElementSerializer.cpp \
    src/TestDemo.cpp \
    src/canvas.cpp \
    src/flowarrowelement.cpp \
    src/flowcircleelement.cpp \
    src/flowelement.cpp \
    src/flowdiamondelement.cpp \
    src/flowdocuelement.cpp \
    src/flowlineelement.cpp \
    src/flowparaelement.cpp \
    src/flowplaygroundelement.cpp \
    src/flowradiuselement.cpp \
    src/flowrectelement.cpp \
    src/flowsubelement.cpp \
    src/graphicstextitem.cpp \
    src/keyeventfilter.cpp \
    src/main.cpp \
    src/mainwidget.cpp \
    src/zindexmanager.cpp \
    test/tst_test1.cpp

HEADERS += \
    src/ElementSerializer.h \
    src/TestDemo.h \
    src/canvas.h \
    src/flowarrowelement.h \
    src/flowcircleelement.h \
    src/flowdiamondelement.h \
    src/flowdocuelement.h \
    src/flowelement.h \
    src/flowlineelement.h \
    src/graphicstextitem.h \
    src/keyeventFilter.h \
    src/mainwidget.h \
    src/flowparaelement.h \
    src/flowplaygroundelement.h \
    src/flowradiuselement.h \
    src/flowrectelement.h \
    src/flowsubelement.h \
    src/graphicstextitem.h \
    src/zindexmanager.h
FORMS += \
    src/mainwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    src/resource.qrc \
    src/type.qrc
